JAVASCRIPT
POPUP
WINDOWS 3
[Requires a browser that supports JavaScript.]
§3 Open a new browser window and set its size and other features.
<html> <head> <title>Popup Windows 3 </title> <script language="JavaScript"> <!-- Hide. function popup() { Pop=window.open("testpage.html","popone","status,menubar=yes,scrollbars=1,width=400,height=250"); } // End hide. --> </script> </head> <body> <a href="#" onclick="popup()">popup window</a> <a href="#" onclick="Pop.close()">popup window</a> </body> </html>
Click the link in the right frame. When you're finished close the new popup window.
This example is the same as the last with the addition of an menubar, a status line and scrollbars.
Remember that any feature not mentioned in the feature list is turned
off.
Just mentioning
status
adds a status line.
Setting
menubar=yes
adds a menubar. Instead of
yes
you can use a
1
as in
scrollbars=1
.
Use the options from the feature list in various combinations and preview them on different browsers. There is significant variation in the rendering of these features between browsers.
Copyright © 2000 P.J. LaBrocca. http://LaBrocca.com